// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 数据 POST */
export async function pageBlock(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<BlockData.PageResult[]>>('/block/page', {
    method: 'POST',
    data: options || {},
  });
}
/**
 * 保存
 * @param options 
 * @returns 
 */
export async function saveBlock(options?: { [key: string]: any }) {
  return request('/block/save', {
    method: 'POST',
    data: options || {},
  });
}

/**
 * 修改
 * @param options 
 * @returns 
 */
export async function updateBlock(options?: { [key: string]: any }) {
  return request('/block/update', {
    method: 'POST',
    data: options || {},
  });
}